package cn.flkj.evidence.repositories;

import cn.flkj.evidence.modles.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author : 州长在手 2020/9/9 上午9:43
 */
@Mapper
//@Repository
public interface UserMapper {

    @Select("SELECT * FROM user WHERE user = #{user}")
    User findByName(@Param("user") String user);

//    @Insert("INSERT INTO USER(NAME, AGE) VALUES(#{name}, #{age})")
//    int insert(@Param("name") String name, @Param("age") Integer age);

}
